package com.sdu.hotel.entity.system;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.sdu.hotel.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xyh
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table("sys_authority")
public class SysAuthority extends BaseEntity implements Serializable {

//    @TableId(type = IdType.ASSIGN_ID)
//    @JsonSerialize(using = ToStringSerializer.class)
//    private String authorityId;

    @Column("authority_name")
    private String authorityName;

    @Column("authority_name_en")
    private String authorityNameEn;

    @Column("authority_desc")
    private String authorityDesc;

    @Column("group_tip")
    private String groupTip;

    @Column("sort")
    private Integer sort;

    @Column("sys_init")
    private int sysInit = 0;

    @Column(value = "update_time",onInsertValue = "now()")
    private Date updateTime;

}
